/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plotter2d;

import java.awt.Color;

/**
 *
 * @author Bezdelnick
 */
public class ColorEntity {
    private String name;
    private Color color;

    public ColorEntity(String name, Color color) {
        this.name = name;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return getName() + " [" + getColor().getRed() + "," + getColor().getGreen() + "," + getColor().getBlue() + "]"; //To change body of generated methods, choose Tools | Templates.
    }
}
